<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增页面</title>
    <!--引入layui-->
    <link rel="stylesheet" th:href="@{/assets/lib/layui/css/layui.css}">
    <script th:src="@{/assets/lib/layui/layui.js}"></script>
    <!--自定义格式-->
    <link rel="stylesheet" th:href="@{/assets/sys/admin/add.css}">
    <script th:src="@{/assets/sys/admin/add.js}"></script>

    <!--定义上下文路径-->
    <script th:inline="javascript">
        let ctx = /*[[@{/}]]*/"";//上下文路径
        if (ctx.endsWith("/")) {
            ctx = ctx.substring(0, ctx.length - 1);
        }

    </script>
</head>
<body>
<form id="add-form"  class="layui-form" lay-filter="add-form">
    <div class="layui-form-item">
        <label class="layui-form-label width100">管理名</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="required|username" lay-reqtext="用户名不可为空"
                   placeholder="请输入管理名" autocomplete="off" class="layui-input width490">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100">密码</label>
        <div class="layui-input-block">
            <input type="password" name="password" lay-verify="required" lay-reqtext="密码不可为空"
                   placeholder="请输入密码" autocomplete="off" class="layui-input width490">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label width100">头像</label>
        <div class="layui-input-block">
            <button type="button" class="layui-btn" id="avatar-upload-btn" style="padding: 0 4px">
                 <i class="layui-icon layui-icon-upload" ></i> 图片上传
             </button>
            <div class="avatar-preview" style="margin-left: 20px" ></div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100">电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone" lay-verify="required|phone" lay-reqtext="电话不可为空"
                   placeholder="请输入电话" autocomplete="off" class="layui-input width490">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100">锁定状态</label>
        <div class="layui-input-block">
            <input type="radio" name="locked" value="是" title="是" checked>
            <input type="radio" name="locked" value="否" title="否">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100" >账号过期时间</label>
        <div class="layui-input-block">
            <input type="text" name="userExpireTime"  lay-verify="datetime"
                   placeholder="选择日期时间" autocomplete="off" class="layui-input width490" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label width100" >权限过期时间</label>
        <div class="layui-input-block">
            <input type="text" name="credExpireTime"  lay-verify="datetime"
                   placeholder="选择日期时间" autocomplete="off" class="layui-input width490"  readonly>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label width100">备注</label>
        <div class="layui-input-block">
            <textarea name="description" placeholder="请输入内容" class="layui-textarea width490"></textarea>
        </div>
    </div>
    </div>
</form>

</body>
</html>